package lamada.filter;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @description:
 * @author: ywk
 * @date: 2020-09-06
 */
public class DemoFilter {
    public static void main(String[] args) {
        List<String> list = Arrays.asList("1,2,3,4".split(","));
        System.out.println(list.stream().filter(e -> {
            return e.equals("4");
        }));
    }
}
